package com.sc.es.repo;

import com.sc.es.entity.HouseTag;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * @author sc
 * Created on  2018/2/7
 */
public interface HouseTagRepo extends CrudRepository<HouseTag,Integer> {
    List<HouseTag> findAllByHouseId(Integer id);

    HouseTag findByHouseIdAndName(Integer houseId, String tag);
}
